package com.farm.cropper.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.farm.common.annotation.Excel;
import com.farm.common.core.domain.BaseEntity;

/**
 * 农作物管理对象 cropper
 * 
 * @author yd
 * @date 2024-03-17
 */
public class Cropper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 农作物编号 */
    private Long cropperId;

    /** 农作物名称 */
    @Excel(name = "农作物名称")
    private String cropperName;

    /** 农作物照片 */
    @Excel(name = "农作物照片")
    private String cropperShow;

    /** 种植面积 */
    @Excel(name = "种植面积")
    private BigDecimal cropperArea;

    /** 收获时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收获时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cropperEnd;

    /** 生长周期 */
    @Excel(name = "生长周期")
    private String cropperCycle;

    /** 种植时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "种植时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cropperStart;

    /** 收获产量 */
    @Excel(name = "收获产量")
    private String cropperYield;

    public void setCropperId(Long cropperId) 
    {
        this.cropperId = cropperId;
    }

    public Long getCropperId() 
    {
        return cropperId;
    }
    public void setCropperName(String cropperName) 
    {
        this.cropperName = cropperName;
    }

    public String getCropperName() 
    {
        return cropperName;
    }
    public void setCropperShow(String cropperShow) 
    {
        this.cropperShow = cropperShow;
    }

    public String getCropperShow() 
    {
        return cropperShow;
    }
    public void setCropperArea(BigDecimal cropperArea) 
    {
        this.cropperArea = cropperArea;
    }

    public BigDecimal getCropperArea() 
    {
        return cropperArea;
    }
    public void setCropperEnd(Date cropperEnd) 
    {
        this.cropperEnd = cropperEnd;
    }

    public Date getCropperEnd() 
    {
        return cropperEnd;
    }
    public void setCropperCycle(String cropperCycle) 
    {
        this.cropperCycle = cropperCycle;
    }

    public String getCropperCycle() 
    {
        return cropperCycle;
    }
    public void setCropperStart(Date cropperStart) 
    {
        this.cropperStart = cropperStart;
    }

    public Date getCropperStart() 
    {
        return cropperStart;
    }
    public void setCropperYield(String cropperYield) 
    {
        this.cropperYield = cropperYield;
    }

    public String getCropperYield() 
    {
        return cropperYield;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cropperId", getCropperId())
            .append("cropperName", getCropperName())
            .append("cropperShow", getCropperShow())
            .append("cropperArea", getCropperArea())
            .append("cropperEnd", getCropperEnd())
            .append("cropperCycle", getCropperCycle())
            .append("cropperStart", getCropperStart())
            .append("cropperYield", getCropperYield())
            .toString();
    }
}
